﻿/*------------------------------------------------
// File Description: ObaPackViaSite DataBase Entity
// Author:			 Crane
// Create Time:		 2020-06-20 14:21:55
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// OBA过站记录
    /// </summary>
    [Table(nameof(ObaPackViaSite))]
    public class ObaPackViaSite : BaseEntity
    {
        private string _packBatchNo = string.Empty;
        private string _packNo = string.Empty;
        private string _obaNo;

        #region Public Property
        ///<Summary>
        /// OBA检测单号
        ///</Summary>
        public string ObaNo
        {
            get { return string.IsNullOrWhiteSpace(_obaNo) ? string.Empty : _obaNo; }
            set { _obaNo = value; }
        }

        ///<Summary>
        /// 打包批次号
        ///</Summary>
        public string PackBatchNo
        {
            get { return string.IsNullOrWhiteSpace(_packBatchNo) ? string.Empty : _packBatchNo; }
            set { _packBatchNo = value; }
        }

        ///<Summary>
        /// 打包编号
        ///</Summary>
        public string PackNo
        {
            get { return string.IsNullOrWhiteSpace(_packNo) ? string.Empty : _packNo; }
            set { _packNo = value; }
        }

        ///<Summary>
        /// 过站类型
        ///</Summary>
        public Enum.SiteType SiteType { get; set; }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// OBA过站记录
        /// </summary>
        public virtual DbSet<ObaPackViaSite> ObaPackViaSites { get; set; }
    }
}